package com.it.jzs.service.impl;

import com.it.jzs.dao.admin.AdminTypeMapper;
import com.it.jzs.pojo.Type;
import com.it.jzs.service.TypeService;
import com.it.jzs.vo.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {

    @Resource
    private AdminTypeMapper typeMapper;


    @Override
    public Result<Object> selectAllType() {
        List<Type> types = typeMapper.selectList(null);
        return Result.success(types, "获取所有分类数据成功");
    }
}
